import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
	mode:'history',//去掉#
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
       /* {
            path: '/main',
            component: () => import(/!* webpackChunkName: "login" *!/ '../components/page/Main.vue'),
            meta: { title: '业务主页' }
        },*/
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
		{
		    path: '/ElEmail',
		    component: () => import(/* webpackChunkName: "login" */ '../components/system/ElEmail.vue'),
		    meta: { title: '电子账户' }
		},
		{
		    path: '/AddElEmail',
		    component: () => import(/* webpackChunkName: "login" */ '../components/system/AddElEmail.vue'),
		    meta: { title: '添加电子账户' }
		},
		{
		    path: '/System',
		    component: () => import(/* webpackChunkName: "login" */ '../components/system/System.vue'),
		    meta: { title: '系统页面' }
		},
		{
		    path: '/Deposit',
		    component: () => import(/* webpackChunkName: "login" */ '../components/module/Deposit.vue'),
		    meta: { title: '存款' }
		},
		{
		    path: '/Withdraw',
		    component: () => import(/* webpackChunkName: "login" */ '../components/module/Withdraw.vue'),
		    meta: { title: '取款' }
		},
		{
		    path: '/QueryMoney',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/QueryMoney.vue'),
		    meta: { title: '余额查询' }
		},
		{
		    path: '/AddCard',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/AddCard.vue'),
		    meta: { title: '添加银行卡' }
		},
		{
		    path: '/TransferAccounts',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/TransferAccounts.vue'),
		    meta: { title: '转账' }
		},
		//流水号
		{
		    path: '/WaterSingle',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/Water.vue'),
		    meta: { title: '流水详情' }
		},
		//提现
		{
		    path: '/Extract',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/Extract.vue'),
		    meta: { title: '提现' }
		},
		//个人信息
		{
		    path: '/UserInfo',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/UserInfo.vue'),
		    meta: { title: '个人信息' }
		},
		//个人信息修改
		{
		    path: '/UpdateInfo',
		    component: () => import(/* webpackChunkName: "login" */ '../components/page/UpdateInfo.vue'),
		    meta: { title: '信息修改' }
		},
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
